from django.urls import re_path
from . import views

urlpatterns = [
    re_path(r'^article/(?P<pk>\d+)/$', views.ArticleDetailView.as_view({
        'get': 'retrieve'
    })),
    re_path(r'^article/(?P<pk>\d+)/publish_comment/$', views.PublishCommentView.as_view({
        'post': 'publish_comment'
    })),
    re_path(r'^article/$', views.PublishArticleView.as_view({
        'post': 'create'
    })),
    re_path(r'^spit/(?P<pk>\d+)/$', views.SpitDetailView.as_view()),
    re_path(r'^spit/(?P<pk>\d+)/children/$', views.SpitChildrenView.as_view()),
]
